package arrays;

import java.util.Arrays;

public class PersonTest {

	public static void main(String[] args) {
		
		Person[] persons = new Person[6];
		persons[5] = new Person("麻二", 24);
		persons[0] = new Person("张三", 45);
		persons[1] = new Person("李四", 28);
		persons[2] = new Person("王五", 55);
		persons[3] = new Person("王五", 54);
		persons[4] = new Person("丘六", 16);
		
		System.out.println(Arrays.toString(persons));
		Arrays.sort(persons);
		System.out.println(Arrays.toString(persons));
	}
}
